package com.cqrcb.cloud.controller.handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.cqrcb.cloud.entity.api.req.Q;
import com.cqrcb.cloud.entity.api.res.R;
import com.cqrcb.cloud.entity.quota.io.MultiQuotaCtrlMarketMainIO;

public class BlockExceptionUtil {
    public static R deduction2(Q<MultiQuotaCtrlMarketMainIO> q, BlockException ex) {
        System.out.println("Oops: " + ex.getClass().getCanonicalName());
        return R.fail("被限流或降级了");
    }
}
